<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
class Zend_View_Helper_MyUrl extends Zend_View_Helper_Url
{
    /**
     * Generates an url given the name of a route.
     *
     * @access public
     *
     * @param  array $urlOptions Options passed to the assemble method of the Route object.
     * @param  mixed $name The name of a Route to use. If null it will use the current Route
     * @param  bool $reset Whether or not to reset the route defaults with those provided
     * @return string Url for the link href attribute.
     */
    public function myUrl(array $urlOptions = array(), $name = null, $reset = false, $encode = true)
    {
        /*if (!isset($urlOptions["language"]) && defined('SETLANGUAGE')) {
            $urlOptions["language"] = SETLANGUAGE;
        }
        if (!isset($urlOptions["country"]) && defined ('SETCOUNTRY')) {
            $urlOptions["country"] = SETCOUNTRY;
        }
        if (isset($urlOptions["storeName"]) && $urlOptions["storeName"] == '') {
            $name = 'error';
        }*/
        return parent::url($urlOptions, $name, $reset, $encode);
    }
}